﻿using QFramework;
using System.Collections.Generic;

namespace HKTools.SimpleTask
{
    /// <summary>
    /// 初始化一个简易版任务流队列
    /// </summary>
    public class CMD_InitTaskQueue : AbstractCommand
    {
        TaskQueueType taskQueueType;

        List<TaskType> taskItems;

        public CMD_InitTaskQueue(TaskQueueType taskQueueType, List<TaskType> taskItems)
        {
            this.taskQueueType = taskQueueType;
            this.taskItems = taskItems;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IHK_SimpleTaskSystem>().InitTaskQueue(taskQueueType, taskItems);
        }
    }
}